<?php 

$data=include_once'./data.php';
if(!empty($_POST)){
	$data[]=$_POST;
	// 转成符合php语法的语句
	$phpCode="<?php return ".var_export($data,true)."?>";
	file_put_contents('./data.php', $phpCode);

}

include_once'./tpl/index.html';

 ?>